import routes from './routes';

export default {
  treeShaking: true,
  routes,
  plugins: [
    [
      'umi-plugin-react',
      {
        antd: false,
        dva: false,
        dynamicImport: {
          webpackChunkName: true,
          loadingComponent: './components/loading/index',
        },
        title: '国际化和主题切换方案',
        dll: false,
        routes: {
          exclude: [
            /models\//,
            /services\//,
            /model\.(t|j)sx?$/,
            /service\.(t|j)sx?$/,
            /components\//,
          ],
        },
      },
    ],
  ]
};
